package com.example.peibei.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

import com.dingtao.common.core.WDActivity;
import com.example.peibei.R;

import butterknife.BindView;
import butterknife.OnClick;

public class WebviewActivity extends WDActivity {
    @BindView(R.id.tv_title)
    TextView tv_title;
    @BindView(R.id.fullWebView)
    WebView webView;

    private String htmlUrl;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_user_agree;
    }

    @Override
    protected void initView() {
        tv_title.setVisibility(View.VISIBLE);
        tv_title.setText("活动详情");
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        htmlUrl = bundle.getString("htmlUrl");
        webView.loadUrl(htmlUrl);
    }

    @OnClick(R.id.iv_back)
    public void back(){
        finish();
    }


    @Override
    protected void destoryData() {

    }
}
